import React from 'react';
import { Button, Result } from 'antd';
import { useNavigate } from 'react-router'

const App = () => {
    const router = useNavigate()

    return <Result
        status="404"
        title="404"
        subTitle="您当前访问的页面没有权限或者没有找到，请输入正确路径。"
        extra={<Button type="primary" onClick={() => {
            router('/')
        }}>返回首页</Button>}
    />
}


export default App;